﻿using FluentAssertions;
using NUnit.Framework;
using ReactiveGraph.Core;
using ReactiveGraph.Tests.Containers;

namespace ReactiveGraph.Tests
{
    [TestFixture]
    public class DefaultNodeContainerTests
    {
        [Test]
        public void CreateNode()
        {
            var factory = new DefaultTestContainer();
            var node1 = factory.GetNode<ReactiveNode>();
            node1.NodeName.Should().Be("ReactiveNode1");
            var node2 = factory.GetNode<ReactiveNode>();
            node2.NodeName.Should().Be("ReactiveNode2");
        }

        [Test]
        public void CanGetDefaultInode()
        {
            var factory = new DefaultTestContainer();
            var node1 = factory.GetNode<IReactiveNode>();
            node1.NodeName.Should().Be("ReactiveNode1");
        }
    }
}
